home *** CD-ROM | disk | FTP | other *** search
/ Aminet 25 / Aminet 25 (1998)(GTI - Schatztruhe)[!][Jun 1998].iso / Aminet / dev / amos / AMOS0398.lzh / AMOSLIST / 000215_amos-request@svcs1.digex.net_Sun Mar 22 15:28:19 1998.msg < prev    next >
Text File  |  1998-04-01  |  3KB  |  101 lines

  1. >From amos-request@svcs1.digex.net  Sun Mar 22 15:28:19 1998
  2. Received: from svcs1.digex.net (svcs1.digex.net [204.91.197.224])
  3.     by pony-2.mail.digex.net (8.8.8/8.8.8) with ESMTP id PAA04997
  4.     for <mcox@access.digex.net>; Sun, 22 Mar 1998 15:28:19 GMT
  5. Received: (from daemon@localhost)
  6.     by svcs1.digex.net (8.8.5/8.8.5) id JAA23818
  7.     for amos-out; Sun, 22 Mar 1998 09:03:58 -0500 (EST)
  8. Received: from pony-2.mail.digex.net (pony-2.mail.digex.net [204.91.241.6])
  9.     by svcs1.digex.net (8.8.5/8.8.5) with ESMTP id JAA23815
  10.     for <amos-list@svcs1.digex.net>; Sun, 22 Mar 1998 09:03:57 -0500 (EST)
  11. Received: from mail.netwave.net (mail.netwave.net [207.112.132.11])
  12.     by pony-2.mail.digex.net (8.8.8/8.8.8) with ESMTP id JAA25281
  13.     for <amos-list@access.digex.net>; Sun, 22 Mar 1998 09:03:56 -0500 (EST)
  14. Received: from pppsrs107.netwave.net (pppsrs107.netwave.net [209.100.37.107])
  15.     by mail.netwave.net (8.8.5/8.8.5) with SMTP id IAA12559;
  16.     Sun, 22 Mar 1998 08:23:50 -0600
  17. Date: 21 Mar 98 14:43:01 -0600
  18. From: "Rand R. Fredricksen" <rand@mail.netwave.net>
  19. Subject: Re: Procedures & Gosub's
  20. To: "Morten Bolstad" <mortenbo@login.eunet.no>
  21. In-Reply-To: <yam135.1930.2014451080@login.eunet.no>
  22. Message-ID: <1642.384T95T8832168@netwave.net>
  23. MIME-Version: 1.0
  24. Content-type: text/plain; charset=us-ascii
  25. Content-transfer-encoding: 7bit
  26. Cc: amos-list@access.digex.net
  27. X-Mailer: THOR 2.5a (Amiga;TCP/IP)
  28. Status: O
  29. X-Status: 
  30.  
  31. Morten Bolstad digitized on 16-May-78 08:04:38:
  32.  MB> Hello!
  33.  
  34.  MB> I have a little coding problem that i think most of you are able
  35.  MB> to help me  out with quite easy.
  36.  
  37. Well, I never have used Procedures much, so this is just a guess...
  38.  
  39. Let's imagine 'a' is your 'Movement' procedure.
  40.  
  41.  MB> a
  42.  MB> Procedure a
  43.  MB> b
  44.      ^- delete this line
  45.         when 'a' exits it should jump back to 'b'
  46.  MB> endproc
  47.  
  48.  MB> procedure b
  49.  MB> a
  50.  MB> endproc
  51.  
  52. AFAIK, Procedures are little programs, all by themselves. They can't
  53. call subroutines that aren't contained within the Procedure, which is
  54. why I don't use them. I use all Subroutines. But I think a Procedure
  55. can call another Procedure.
  56.  
  57.  MB> The reason i want it to be like one of these exampels is that
  58.  MB> i'am gonna have
  59.  MB> 6 procedures and then it takes up to much space and memory to
  60.  MB> have the code  in movment 6 times, when i dont need to have it
  61.  MB> more than one time.
  62.  
  63. Then you can have:
  64.  
  65.    Procedure c
  66.    Paste Bob, b,x,y
  67.    a
  68.    Endproc
  69.  
  70.    Procedure d
  71.    Locate x,y:Print
  72.    a
  73.    Endproc
  74.  
  75.    Procedure e
  76.    Do Something Else
  77.    a
  78.    Endproc
  79.  
  80. etc...
  81.  
  82.  
  83.  MB> Oki, please help me with this prob!!!
  84.  
  85. Hope this helps :)
  86.  
  87.  MB> Morten Bolstad.
  88.  
  89.  
  90. Greets,
  91.  - Rand
  92. -- 
  93.   ______                                ________________________ ////
  94.  |   _   \  _____   ___   __ _____      mailto:rand@netwave.net ////
  95.  |  [_}   )(___  \ (   \ |  (  _  \ http://www.netwave.net/members/rand
  96.  |   _   (  / __  \ |   \|  | |_}  )                          ////
  97.  |__| \___)(_______(__|\____(_____/                      \\\\////
  98.  
  99.  
  100. {{:-(*)  <-- Klingon eating a Tribble.
  101.